home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
IDLIncludes
/
TranslationExtensions.idl
< prev
next >
Wrap
Text File
|
1996-05-01
|
4KB
|
109 lines
/*
File: TranslationExtensions.idl
Contains: Macintosh Easy Open Translation Extension Interfaces.
Version: Technology: Macintosh Easy Open 1.1
Release: Universal Interfaces 3.0d3 on Copland DR1
Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
Bugs?: If you find a problem with this file, send the file and version
information (from above) and the problem description to:
Internet: apple.bugs@applelink.apple.com
AppleLink: APPLE.BUGS
*/
#ifndef __TRANSLATIONEXTENSIONS_IDL__
#define __TRANSLATIONEXTENSIONS_IDL__
#include <somobj.idl>
#include <somcls.idl>
#ifndef __MEMORY_IDL__
#include <Memory.idl>
#endif
#ifndef __FILES_IDL__
#include <Files.idl>
#endif
#ifndef __QUICKDRAW_IDL__
#include <Quickdraw.idl>
#endif
#ifndef __COMPONENTS_IDL__
#include <Components.idl>
#endif
#ifdef __SOMIDL__
/* better names for 4-char codes*/
typedef OSType FileType;
typedef ResType ScrapType;
typedef unsigned long TranslationAttributes;
typedef SOMLargeStruct FileTypeSpec; /* Derived from a struct of 20 bytes in size */
typedef SOMLargeStruct FileTranslationList; /* Derived from a struct of 8 bytes in size */
typedef OpaquePtr FileTranslationListPtr; /* Substituted OpaquePtr for ``FileTranslationList*'' */
typedef OpaquePtr FileTranslationListHandle; /* Substituted OpaquePtr for ``FileTranslationListPtr*'' */
typedef SOMLargeStruct ScrapTypeSpec; /* Derived from a struct of 8 bytes in size */
typedef SOMLargeStruct ScrapTranslationList; /* Derived from a struct of 8 bytes in size */
typedef OpaquePtr ScrapTranslationListPtr; /* Substituted OpaquePtr for ``ScrapTranslationList*'' */
typedef OpaquePtr ScrapTranslationListHandle; /* Substituted OpaquePtr for ``ScrapTranslationListPtr*'' */
/* definition of callbacks to update progress dialog*/
typedef long TranslationRefNum;
#if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
/*
****************************************************************************************
*
* This routine sets the advertisement in the top half of the progress dialog.
* It is called once at the beginning of your DoTranslateFile routine.
*
* Enter: refNum Translation reference supplied to DoTranslateFile.
* advertisement A handle to the picture to display. This must be non-purgable.
* Before returning from DoTranslateFile, you should dispose
* of the memory. (Normally, it is in the temp translation heap
* so it is cleaned up for you.)
*
* Exit: returns noErr, paramErr, or memFullErr
*/
/*
****************************************************************************************
*
* This routine updates the progress bar in the progress dialog.
* It is called repeatedly from within your DoTranslateFile routine.
* It should be called often, so that the user will get feedback if he tries to cancel.
*
* Enter: refNum translation reference supplied to DoTranslateFile.
* progress percent complete (0-100)
*
* Exit: canceled TRUE if the user clicked the Cancel button, FALSE otherwise
* returns noErr, paramErr, or memFullErr
*/
/* ComponentMgr selectors for routines*/
/* Routines to implment in a file translation extension*/
typedef OpaquePtr DoGetFileTranslationListProcPtr;
typedef OpaquePtr DoIdentifyFileProcPtr;
typedef OpaquePtr DoTranslateFileProcPtr;
typedef OpaquePtr DoGetTranslatedFilenameProcPtr;
/* Routine to implement in a scrap translation extension*/
typedef OpaquePtr DoGetScrapTranslationListProcPtr;
typedef OpaquePtr DoIdentifyScrapProcPtr;
typedef OpaquePtr DoTranslateScrapProcPtr;
#endif
#endif /* __SOMIDL__ */
#endif /* __TRANSLATIONEXTENSIONS_IDL__ */